#pragma once
#include <iostream>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <string>
#include <cstring>
#include <unistd.h>
#include <sys/wait.h>
#include <jsoncpp/json/json.h>
#include "Log.hpp"



enum Enum  
{
    OK = 1,
    SOCKET_ERROR,
    BIND_ERROR,
    LISTEN_ERROR,
    ACCEPT_ERROR,
    CONNECT_ERROR,
    FORK_ERROR,
    USAGE_ERROR,
};

class NoCopy
{
public:
    NoCopy(){};
    ~NoCopy(){};
private:
    NoCopy (const NoCopy&) = delete;
    NoCopy operator=(const NoCopy&) = delete; 
};

#define CONV(addr) (struct sockaddr*)(&addr)